package cn.com.lyj6851.user.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 演示实体父类
 */
@SuppressWarnings({ "serial", "rawtypes" })
@EqualsAndHashCode(callSuper=true)
@Data
public class SuperEntity<T extends Model> extends Model<T> {

    @ApiModelProperty(value = "主键id")
    private String id;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
